home *** CD-ROM | disk | FTP | other *** search
- Path: news.cc.tut.fi!vuokko!csromu
- From: csromu@vuokko.uta.fi (Roland Mueller)
- Newsgroups: comp.lang.c++
- Subject: Re: Template implementation - code size efficiency..
- Date: 19 Apr 1996 07:23:18 GMT
- Organization: University of Tampere, Finland
- Distribution: world
- Message-ID: <4l7f16$16p@cc.tut.fi>
- References: <317417FA.5607@zurich.ibm.com>
- NNTP-Posting-Host: vuokko.uta.fi
- X-Newsreader: TIN [version 1.2 PL2]
-
- Keith Whittingham (wgk@zurich.ibm.com) wrote:
- : Is there a rule of thumb regarding the code size overhead
- : for the use of a given template... Does
-
- : Array<unsigned int> aui;
- : Array<signed int> asi;
-
- : produce twice as much executable code as...
-
- : Array<signed int> asi;
-
- : Can the compiler optimise...
-
- : --
- : Keith Whittingham
- : wgk@zurich.ibm.com
-
- I never measured the code size of template implementations,
- but your code in the first case results in two independend
- classes one for unsigned and another for signed integers.
- When you like to reduce your code IMO you should implement
- one of the classes and uses both kinds of integers w/ it.
-
- Regards,
-
- --
- Roland Mⁿller KΣrΣjΣt÷rmΣ 4 B 15, 33310 Tampere/Finland
- phone +358-31-3453609
- e-mail Roland.Mueller@uta.fi
-